package com.example.springbootsfzy.service.gengyifei;

import com.example.springbootsfzy.domain.ChargeStandardAssociations;
import com.example.springbootsfzy.mapper.ChargeStandardAssociationsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class charge_standard_associations_service {
    @Autowired
    private ChargeStandardAssociationsMapper chargeStandardAssociationsMapper;
    //通过  关联id 删除关联信息
    public int deleteByPrimaryKey(int association_id){
       return chargeStandardAssociationsMapper.deleteByPrimaryKey(association_id);
    }


    //通过参数信息  增加收费关联  信息
    public int insert(ChargeStandardAssociations record){
       return chargeStandardAssociationsMapper.insert(record);
    }

    //通过参数信息  修改关联信息
    public int updateByPrimaryKey(ChargeStandardAssociations record){
        return chargeStandardAssociationsMapper.updateByPrimaryKey(record);
    }

    //通过关联id  查询关联信息
    public ChargeStandardAssociations selectByPrimaryKey(int association_id){
       return chargeStandardAssociationsMapper.selectByPrimaryKey(association_id);
    }

    //查询所有关联信息
    public List<ChargeStandardAssociations> selectAll(){
        return chargeStandardAssociationsMapper.selectAll();
    }
}
